<div class="layui-form" lay-filter="layuiadmin-app-form-list" id="layuiadmin-app-form-list"style="padding: 20px 30px 0 0;">
    <div class="layui-form-item">
      <label class="layui-form-label">店铺</label>
      <div class="layui-input-inline">
        <script type="text/html" template>
            {{# if(d.params.type != 'edit'){ }}
            <select name="shop" lay-verify="required" lay-search>
                <option value="">请选择店铺</option>
            </select>
            {{# }else{ }}
             <input type="text" name="shop" id="shop" lay-verify="required" class="layui-input {{ d.params.type == 'edit' ? 'layui-bg-gray' : '' }}" {{ d.params.type == 'edit' ? 'readonly' : '' }}>
            {{# } }}
        </script>
      </div>
    </div>
    
    <div class="layui-form-item">
      <label class="layui-form-label">SKU</label>
      <div class="layui-input-inline">
        <script type="text/html" template>
          <input type="text" name="sku" id="SKU" value="{{ d.params.sku || '' }}" lay-verify="required" placeholder="请输入SKU" autocomplete="off" class="layui-input {{ d.params.type == 'edit' ? 'layui-bg-gray' : '' }}" {{ d.params.type == 'edit' ? 'readonly' : '' }}  lay-verify="required">
        </script>
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">中文名称</label>
      <div class="layui-input-inline" id="cname_text">
        <script type="text/html" template>
          <input type="text" id="cname" name="cname" value="{{ d.params.cname || '' }}" lay-verify="required" placeholder="请输入陈列类" autocomplete="off" class="layui-input {{ d.params.type == 'edit' ? 'layui-bg-gray' : '' }}" {{ d.params.type == 'edit' ? 'readonly' : '' }}  lay-verify="required">
        </script>
      </div>
    </div>
     <div class="layui-form-item">
      <label class="layui-form-label">生命周期</label>
      <div class="layui-input-inline">
        <script type="text/html" template>
          <select name="cycle_stage" lay-verify="required">
            <option value="">请选择</option>
            <option value="1" {{ d.params.cycle_stage == 1 ? 'selected' : '' }}>补货期</option>
            <option value="2" {{ d.params.cycle_stage == 2 ? 'selected' : '' }}>新品期</option>
            <option value="3" {{ d.params.cycle_stage == 3 ? 'selected' : '' }}>计划淘汰期</option>
            <option value="4" {{ d.params.cycle_stage  == 4 ? 'selected' : '' }}>淘汰期</option>
          </select>
        </script>
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">销售状态</label>
      <div class="layui-input-inline">
        <script type="text/html" template>
          <select name="sales_state" lay-verify="required">
            <option value="">请选择销售状态</option>
            <option value="1" {{ d.params.sales_state == 1 ? 'selected' : '' }}>新产品</option>
            <option value="2" {{ d.params.sales_state == 2 ? 'selected' : '' }}>清仓品</option>
            <option value="3" {{ d.params.sales_state == 3 ? 'selected' : '' }}>在售品</option>
            <option value="4" {{ d.params.sales_state  == 4 ? 'selected' : '' }}>下架品</option>
          </select>
        </script>
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">SKU等级</label>
      <div class="layui-input-inline">
        <script type="text/html" template>
            <input type="text" name="sku_grade" value="{{ d.params.sku_grade || '' }}" lay-verify="required" placeholder="请输入号码" autocomplete="off" class="layui-input" lay-verify="required">

        </script>
      </div>
    </div>
    <script type="text/html" template>
      <input type="hidden" name="id" value="{{ d.params.id || '' }}">
    </script>
    <div class="layui-form-item">
      <label class="layui-form-label"></label>
      <div class="layui-input-inline">
        <input type="button" lay-submit lay-filter="layuiadmin-app-form-submit" value="确认" class="layui-btn">
      </div>
    </div>
  </div>
